import { getRequest, seeRequest, postRequest } from "@/common/utils/requestUtils";

// 获取SSE对话流
export const loadChatStream = (params) => {
  return seeRequest("/getStream", params, { Accept: "text/event-stream" });
};

// 获取会话列表
export const loadGetSessionList = () => {
  return getRequest("/getSession");
};

// 基于session获取对话
export const loadGetChatBySession = (params) => {
  return postRequest("/getChatBySession", params);
};
